<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>公司详情</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=yes" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/company.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=company&prefix=3g_company&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WMP12100</span>
       </div>
    </div>
    <div class="content m-top">
        <div class="blank"></div>
        <div class="details-1">
            <div class="details-1-1"><span>基本信息</span></div>
        </div>
        <div class="details-2">
            <div class="details-2-2"><a href="javascript:void(0)" id="log"><span>公司商标</span><img src="<%=basepath%>images/company.png" id="img-2" class="img-2 right"></a></div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>公司名称</span><span class="span-1 right" id="companyName">${user.companyName}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>公司类型</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${empty user.companyType ? '' : user.companyType == '100' ? '购销商' : '餐饮企业' }</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>主营行业</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.industry}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>兼营行业</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.viceIndustry}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)" id="profile"><span>公司简介</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/gsjj.png"><span class="span-1" id="profile-1">${user.introduce}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>经营地址</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/jydq.png"><span class="span-1">${user.district}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>发货地址</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/fhdz.png"></a> </div>
            <div class="details-2-1 border"><a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=address&prefix=3g_company"><span>收货地址</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/shdz.png"></a> </div>
        </div>
        <div class="blank"></div>
        <div class="details-1">
            <div class="details-1-1"><span>联系信息</span></div>
        </div>
        <div class="details-2">
            <div class="details-2-1"><a href="javascript:void(0)"><span>常用联系人</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.postalAddress}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>网址</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/net.png"><span class="span-1">${user.website}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>电话</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/phone.png"><span class="span-1">${user.telephone}</span></a> </div>
            <div class="details-2-1 border"><a href="javascript:void(0)"><span>邮箱</span><img src="<%=basepath%>images/b43.png"><img src="<%=basepath%>images/email.png"><span class="span-1">${user.mailbox}</span></a> </div>
        </div>
        <div class="blank"></div>
        <div class="details-1">
            <div class="details-1-1"><span>工商信息 (选填)</span></div>
        </div>
        <div class="details-2">
            <div class="details-2-1"><a href="javascript:void(0)"><span>营业执照号</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.businessRegisterCode}</span></a> </div>
            <div class="details-2-1"><a href="javascript:void(0)"><span>法定代表人</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.legalRepresentative}</span></a> </div>
            <div class="details-2-1 border"><a href="javascript:void(0)"><span>营业期限</span><img src="<%=basepath%>images/b43.png"><span class="span-1">${user.termStart} - ${user.termEnd}</span></a> </div>
        </div>
        <div class="space"></div>
    </div>
</div>
</body>
<script type="text/javascript">
    /*错误提示*/
    $(function(){
        var error = "${requestScope.returnMsg}";
        if(error != "" && error != "成功!"){
            layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
        }
    });
    /*公司商标*/
    /* $(function(){
    	$("#log").click(function(){
    		layer.open({
    			type: 1,
    			  title: false,
    			  area: ['250px', '51px'],
    			  shade: 0.1,
    			  closeBtn: 0,
    			  shadeClose: true,
    			  content: '<div style="width:100%;height:50px;"><a href="javascript:void(0)" id="a-1" style="width:100%;height:50px;display:inline-block;text-align:center;color:#333;line-height:50px;border-bottom:1px solid #ccc;font-size:16px;">相册选择</a></div>'
    		});
    		$("#a-1").click(function(){
				layer.closeAll();
			});
			$("#a-2").click(function(){
				layer.closeAll();
			});
    	});
    }); */
    /*公司简介*/
    $(function(){
    	$("#profile").click(function(){
    		layer.prompt({
    			title:'公司简介',
    			formType: 2
    			
    		},function(value, index, elem){
    			$("#profile-1").text(value);
    			layer.close(index);
    		}
    		);
    	});
    });
</script>
</html>
